import fly from './fly'

export function itemData (params) {
  return fly.get('operation/item-data', params)
}

export function fetchBrands (params) {
  return fly.get('/cms/operation/brands', params)
}

export function brandDetail (id) {
  return fly.get('/cms/operation/brands/' + id)
}

export function guessLikeData (params) {
  return fly.get('operation/guess-like-data', params)
}
export function getRecommends (params) {
  return fly.get('operation/recommended-goods', params)
}
export function navmenus (params) {
  return fly.get('operation/nav-menus', params)
}
export function likeDatas (params) {
  return fly.get('operation/guess-like-data', params)
}
export function getZones (id) {
  return fly.get('/cms/operation/goods-zones/' + id)
}

export function goodsZoneGoods (id, params) {
  return fly.get('operation/goods-zones/' + id + '/goods', params)
}

// cms微服务
export function getBannerList (params) {
  return fly.get('/cms/operation/banners', params)
}
export function initIndex (params) {
  return fly.get('/cms/page-data/index', params)
}
